<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const {
      log: l
    } = console;

    const array2set = (arr) => [...new Set(arr)];

    let arr = [1, 3, 4, 6, 2, 4, 5, 5, 3, 3];
    arr = array2set(arr);
    l(arr);
  </script>
</body>

</html>